import React, { FC, useContext } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import { LoadingContext, LoadingTypes } from '@/pages/MyCollection/LoadingComponent/LoadingContex';
export interface IProps extends ICompProps {}
Loading.defaultProps = {} as Partial<IProps>;
function Loading(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('Loading', className);
    const { loadingText } = useContext(LoadingContext);
    return (
        <RootView className={localClassName} style={style}>
            {loadingText}
        </RootView>
    );
}
export default React.memo(Loading as FC<IProps>);
const RootView = styled(View)`
    &.Loading {

    }
`;
